home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
demos
/
dms4demo.zip
/
REINSTAL.CMD
< prev
Wrap
OS/2 REXX Batch file
|
1993-01-24
|
10KB
|
205 lines
echo off
cls
if /%1==/ goto error2
if /%2==/ goto error3
if /%1==%2/ goto error1
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ DMS/IB Installation ║
echo ║ ║
echo ║ Disk Management System / Intelligent Backup ║
echo ║ Copyright 1992 Sterling Software, Inc. ║
echo ║ ║
echo ╠═════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ DMS/IB is being reinstalled from floppy disk %1: ║
echo ║ to hard disk drive %2: ║
echo ║ ║
echo ╟─────────────────────────────────────────────────────────────────╢
echo ║ ║
echo ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ DMS/IB Installation ║
echo ║ ║
echo ║ Disk Management System / Intelligent Backup ║
echo ║ Copyright 1992 Sterling Software, Inc. ║
echo ║ ║
echo ╠═════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ Installation will use the existing directory \DMSDIR. The ║
echo ║ backup index, backup selection criteria, and system options ║
echo ║ will be maintained from the previous version. There is no ║
echo ║ limit to the number of times you can install DMS/IB. ║
echo ║ ║
echo ║ WARNING! Do not use the REINSTAL procedure if you are ║
echo ║ currently using Intelligent Backup version 3.3 or lower. ║
echo ║ See the README file for details and circumventions or use ║
echo ║ the INSTALL procedure instead. ║
echo ║ ║
echo ╟─────────────────────────────────────────────────────────────────╢
echo ║ ║
echo ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ DMS/IB Installation ║
echo ║ ║
echo ║ Disk Management System / Intelligent Backup ║
echo ║ Copyright 1992 Sterling Software, Inc. ║
echo ║ ║
echo ╠═════════════════════════════════════════════════════════════════╣
echo ║ ║
echo ║ NOT FOR EXPORT! ║
echo ║ ║
echo ║ This product is subject to state department regulations. ║
echo ║ ║
echo ║ For use in the USA only. ║
echo ║ ║
echo ╟─────────────────────────────────────────────────────────────────╢
echo ║ ║
echo ║ Press (CTRL/BREAK) if you do not wish to continue with install. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
cls
echo Reinstall started....
%2:
cd \DMSDIR
if exist DMSPCOPT.DAT goto dmspc
goto continue
:dmspc
if exist IBOPTN.DAT del DMSPCOPT.DAT
if not exist IBOPTN.DAT ren DMSPCOPT.DAT IBOPTN.DAT
:continue
if not exist IBOPTN.DAT goto error4
if not exist FILEEXCL.TXT goto error4
if exist IBOPTN.SAV del IBOPTN.SAV
if exist FILEEXCL.SAV del FILEEXCL.SAV
if exist HISTORY.SAV del HISTORY.SAV
ren IBOPTN.DAT IBOPTN.SAV >nul
ren FILEEXCL.TXT FILEEXCL.SAV >nul
if exist HISTORY.TXT ren HISTORY.TXT HISTORY.SAV >nul
if exist HELP.DAT del HELP.DAT
if exist HELP.NDX del HELP.NDX
if exist MSG.DAT del MSG.DAT
if exist IB.EXE del IB.EXE
if exist AUTOINST.EXE del AUTOINST.EXE
if exist README del README
if exist IBT*.* del IBT*.*
if exist IBUBN.OVL del IBUBN.OVL
if exist IB.CMD del IB.CMD
if exist IBSTART.CMD del IBSTART.CMD
cls
echo PLEASE WAIT. Copying DMS/IB program files ...
%1:
cd\dmsdir
copy %1:\dmsdir %2:\dmsdir
%2:
echo please wait, confirming proper installation ...
if exist IBCONV.* del IBCONV.*
cls
copy IBOPTN.SAV IBOPTN.DAT >nul
del IBOPTN.SAV
copy FILEEXCL.SAV FILEEXCL.TXT >nul
del FILEEXCL.SAV
if exist HISTORY.SAV copy HISTORY.SAV HISTORY.TXT >nul
if exist HISTORY.SAV del HISTORY.SAV
if not exist IBOPTN.DAT goto error5
if not exist IBUBN.OVL goto error5
if not exist HELP.DAT goto error5
if not exist HELP.NDX goto error5
if not exist MSG.DAT goto error5
if not exist IB.EXE goto error5
if not exist FILEEXCL.TXT goto error5
if not exist IBT2LANG.DAT goto error5
if not exist IBT4LANG.DAT goto error5
if not exist AUTOINST.EXE goto error5
if not exist IBT2INST.DAT goto error5
if not exist IBSTART.CMD goto error5
autoinst %1 %2 R
pause
cd \
if exist CONFIG.IBS del CONFIG.IBS
cd \DMSDIR
if exist AUTOINST.EXE del AUTOINST.EXE
if exist IBT2INST.DAT del IBT2INST.DAT
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Install Complete. Just type "IB" to start your first backup. ║
echo ║ ║
echo ║ Be sure to print and read the README file that is included ║
echo ║ on the installation diskette. You will find information on ║
echo ║ the latest beta testing status. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto end
:error1
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Floppy and Hard disk drive ID are the same ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error2
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Floppy and Hard disk drive IDs not specified ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error3
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ Error - Hard disk drive ID not specified ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto error
:error4
cls
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ERROR...... ║
echo ║ Some required files missing, unable to reinstall. We suggest ║
echo ║ that you use install procedure and then restore indexes from ║
echo ║ the last backup diskette. ║
echo ╚═════════════════════════════════════════════════════════════════╝
goto end
:error5
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Insallation Failed! This may be due to insufficient disk space ║
echo ║ or disk I/O error. Confirm that 500K of usable disk space is ║
echo ║ available, then begin installation again. ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
pause
echo off
cls
echo please wait ...
cd \
if exist IB.CMD del IB.CMD
goto end
:error
echo ╔═════════════════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Install failed! Check for proper command syntax. ║
echo ║ ║
echo ║ floppy-letter:REINSTAL floppy-letter hard-disk-letter ║
echo ║ ║
echo ║ Example: To install from distribution diskette in floppy ║
echo ║ drive A: to a hard disk (Fixed Disk) referred to ║
echo ║ as drive C: use the following command ║
echo ║ ║
echo ║ A:REINSTAL A C ║
echo ║ ║
echo ╚═════════════════════════════════════════════════════════════════╝
:end
cd\
cd %1:\ 2>nul
cd %2:\ 2>nul